package org.zerg.entity;

import java.util.List;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

@JsonSerialize(include=JsonSerialize.Inclusion.NON_EMPTY)
public class Order {

	private int id;
	
	private String orderNo;
	
	private int userId;
	
	private int deleteTime;
	
	private String createTime;
	
	private double totalPrice;
	
	private int status;
	
	private String snapImg;
	
	private String snapName;
	
	private int totalCount;
	
	private int updateTime;
	
	private String snapItems;
	
	private String snapAddress;
	
	private String prepayId;
	
	private List<OrderProducts> products;
	
	private Address address;
	
	public Address getAddress() {
		return address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

	public double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(double totalPrice) {
		this.totalPrice = totalPrice;
	}

	public List<OrderProducts> getProducts() {
		return products;
	}

	public void setProducts(List<OrderProducts> products) {
		this.products = products;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getDeleteTime() {
		return deleteTime;
	}

	public void setDeleteTime(int deleteTime) {
		this.deleteTime = deleteTime;
	}
	

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getSnapImg() {
		return snapImg;
	}

	public void setSnapImg(String snapImg) {
		this.snapImg = snapImg;
	}

	public String getSnapName() {
		return snapName;
	}

	public void setSnapName(String snapName) {
		this.snapName = snapName;
	}

	public int getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}

	public int getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(int updateTime) {
		this.updateTime = updateTime;
	}

	public String getSnapItems() {
		return snapItems;
	}

	public void setSnapItems(String snapItems) {
		this.snapItems = snapItems;
	}

	public String getSnapAddress() {
		return snapAddress;
	}

	public void setSnapAddress(String snapAddress) {
		this.snapAddress = snapAddress;
	}

	public String getPrepayId() {
		return prepayId;
	}

	public void setPrepayId(String prepayId) {
		this.prepayId = prepayId;
	}



	public Order(String orderNo, int userId, Double totalPrice,int totalCount) {
		this.orderNo = orderNo;
		this.userId = userId;
		this.totalPrice = totalPrice;
		this.totalCount = totalCount;
	}
	
	public Order() {
		
	}

	public Order(String orderNo, int userId,String creatTime, double totalPrice,
			String snapImg, String snapName, int totalCount, String snapItems,
			String snapAddress) {
		super();
		this.orderNo = orderNo;
		this.userId = userId;
		this.createTime = creatTime;
		this.totalPrice = totalPrice;
		this.snapImg = snapImg;
		this.snapName = snapName;
		this.totalCount = totalCount;
		this.snapItems = snapItems;
		this.snapAddress = snapAddress;
	}

	@Override
	public String toString() {
		return "Order [id=" + id + ", orderNo=" + orderNo + ", userId="
				+ userId + ", deleteTime=" + deleteTime + ", createTime="
				+ createTime + ", totalPrice=" + totalPrice + ", status="
				+ status + ", snapImg=" + snapImg + ", snapName=" + snapName
				+ ", totalCount=" + totalCount + ", updateTime=" + updateTime
				+ ", snapItems=" + snapItems + ", snapAddress=" + snapAddress
				+ ", prepayId=" + prepayId + ", products=" + products
				+ ", address=" + address + "]";
	}
	
	
	
	
}
